function randomArr(a) {
    let newArr=[...a]
    var len = newArr.length;
    for (var i = 0; i < len - 1; i++) {
        var index = parseInt(Math.random() * (len - i));
        var temp = newArr[index];
        newArr[index] = newArr[len - i - 1];
        newArr[len - i - 1] = temp;
    }
    return newArr
}

function isArray(a){
    return Object.prototype.toString.call(a) === '[object Array]';
}

export {
    randomArr,
    isArray
}